﻿@{
    Layout = "~/admin/Templates/TelerikAdministration.cshtml";
    ResFile = "cms_Media";
}

@{
    ViewBag.Title = _("Upload file(s)");
}

<p>
@if (ViewBag.BackToMedia)
{
<a class="b-back-link" href="@Url.Action("index", "cmsmedia")"><i class="b-icon"></i> @_("Back to Media")</a>
}
else
{
<a class="b-back-link" href="@Url.Action("get", "cmsmedia", new { id = ViewBag.MediaContentId })"><i class="b-icon"></i> @_("Back to Media content")</a>
}
</p>

<h1 class="g-clear">
	<i class="b-icon b-icon_h b-icon_h_media"></i>
	<span class="b-overflow">
	@_("Upload new media item")
	<span class="b-intro-text">@_("Create new media item. All selected files will be packed into a single media item. For example these can be a video file and corresponding thumbnail image.")</span> 
	</span>  
</h1>

@{Html.RenderPartial("ErrorPanel");}

@( Html.Telerik().TabStrip().Name("UploadMediaContent")
       .Items(p =>
       {
           p.Add().Text(_("Upload file(s)")).Content(
               @<text>
               @Html.Partial("uploadfile", "cmsmediacontent")
               </text>).Selected(true);
           p.Add().Text(_("Media properties")).Enabled(false).Content(               
               @<text>               
               @Html.Partial("mediacontent", "cmsmediacontent")
               </text>);
       })
)



